import { Base } from '../utils/base.js';
class Goods extends Base {
  constructor() {
    super();
  }
  getRecommend(callback, spend) {
    var param = {
      url: '/api/Product/Recommend',
      data: {
        num: spend
      },
      sCallback: function (data) {
        callback && callback(data);
      }
    }
    this.request(param);
  }
  getGoodsInfo(callback, goods_id) {
    var param = {
      url: '/api/Product/Info',
      data: {
        id: goods_id
      },
      sCallback: function (data) {
        callback && callback(data);
      }
    }
    this.request(param);
  }
  CommentLog(callback, goods_id) {
    var param = {
      url: '/api/Product/CommentLog',
      data: {
        id: goods_id
      },
      sCallback: function (data) {
        callback && callback(data);
      }
    }
    this.request(param);
  }
  
}

export { Goods }